
/*******************************************************
*  Team name: FTPMP 
*  Class involve: UseMTController, UseMTWindow, BoardEngine, RoundWindow
*  Version: 1.0 
*  Author: Ada Ko
*  History of modification: 
*  Ver 1.0, Fred,
*  - removeUsedMT, getMagicToolDesp, initUseMTWindow
*******************************************************/

package control;
import java.awt.*;
import javax.swing.*;
import java.util.Vector;
import boundary.RoundWindow;
import boundary.UseMTWindow;

public class UseMTController 
{
	BoardEngine boardEngine;
	RoundWindow roundWindow;
	UseMTWindow useMTWindow;
	public UseMTController(BoardEngine BE, RoundWindow RW)
	{
		this.boardEngine=BE;
		this.roundWindow=RW;
	}
	
	public void initUseMTWindow(UseMTWindow UseMTWindow)
	{
		this.useMTWindow=UseMTWindow;
	}
	
	public String getMagicToolDesp(int currentPlayer, int MTID)
	{
		String desp = boardEngine.getMagicToolDesp(currentPlayer, MTID);
		return desp;
	}
	
	public void removeUsedMT(int PID, int MTID)
	{
		this.boardEngine.removeUsedMT(PID, MTID);
	}

	public void addBonus() 
	{
		System.out.println("useMTController - addBonus");
		this.boardEngine.addBonus();
		
	}
	
	public String getAtPanel()
	{
		return this.boardEngine.getAtPanel();
	}
}
